#ifndef	__e7convert_h__
#define	__e7convert_h__

#include <string>	// gnu c++ basic type 'string'
//using namespace std;

/** Utility functions for type convertions
 *  from unix-v7 floppie to sun gnu c++
 */

typedef unsigned char	byte;

// 16 bit short int
extern short	getshort( byte buffer[], int offset );

// 24 bit "packed" long int
extern int	getlong3( byte buffer[], int offset );

// 32 bit long int
extern long	getlong( byte buffer[], int offset );
extern long	getlong4( byte buffer[], int offset );

// een reeks van ascii chars
extern std::string	getchars( byte buffer[], int offset, int length );

#endif	/*e7convert_h*/
